package com.pcbly.web.persistence.workflow;

import java.util.List;

import com.pcbly.web.bean.workflow.WorkflowStepBean;
import com.pcbly.web.bean.workflow.WorkflowTemplateBean;
import com.pcbly.web.bean.workflow.WorkflowTransitionBean;
import com.pcbly.web.persistence.BaseDao;

public interface WorkflowTransitionDao extends BaseDao<WorkflowTransitionBean> {
	void createWorkflowTransition(WorkflowTransitionBean bean) throws Exception;

	WorkflowStepBean findWorkflowStepById(String id) throws Exception;

	WorkflowTemplateBean findWorkflowTemplateById(String id) throws Exception;

	List<WorkflowTransitionBean> findWorkflowTransitionBeansByStepId(
			String templateId, String preStepId, String nextStepId)
			throws Exception;
}
